﻿using System.Collections.Generic;
using System.Threading.Tasks;
using ERP.WorkforceManage.Dtos;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace ERP.WorkforceManage
{
    /// <summary>
    /// 排班计划服务接口
    /// </summary>
    public interface ISchedulingPlanService : IApplicationService
    {
        /// <summary>
        /// 创建排班计划
        /// </summary>
        Task<SchedulingPlanDto> CreateAsync(CreateSchedulingPlanDto input);

        /// <summary>
        /// 更新排班计划
        /// </summary>
        Task<SchedulingPlanDto> UpdateAsync(int id, SchedulingPlanDto input);

        /// <summary>
        /// 获取排班计划详情
        /// </summary>
        Task<SchedulingPlanDto> GetAsync(int id);

        /// <summary>
        /// 获取排班计划列表
        /// </summary>
        Task<PagedResultDto<SchedulingPlanDto>> GetListAsync(SchedulingPlanGetListInputDto input);

        /// <summary>
        /// 删除排班计划
        /// </summary>
        Task DeleteAsync(int id);

        /// <summary>
        /// 批量删除排班计划
        /// </summary>
        Task BatchDeleteAsync(List<int> ids);
    }
}
